home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / ASSPOINT.MOD < prev    next >
Encoding:
Text File  |  1993-10-24  |  4.1 KB  |  150 lines

  1.  
  2. ┌───────────────────────────────────────────────────────────────────────────┐
  3. │ Mod Name  : Ass point Enable     Mod Author: Squire MalColm 1@6216 WWIVnet│
  4. │                                                           1@16216 WWIVLink│
  5. │ Difficulty: Easy                 Date      : 03FEB93                      │
  6. │                                                                           │
  7. │ Version   : WWIV 4.22            File Name : SM00001.MOD                  │
  8. │                                                                           │
  9. │ Description: Sets ASS_PTS when user violates standard ASS_PTS things, or  │
  10. │              hangs up on system without using either 'O' or '/O', also it │
  11. │              automaticly lowers the SL and DSL 1 point per 10 ASS_PTS and │
  12. │              reduces ASS_PTS by 10.  It will display a standard message   │
  13. │              file called ASSPOINT.* to a user with 6+ ASS_PTS at logon.   │
  14. │                                                                           │
  15. └───────────────────────────────────────────────────────────────────────────┘
  16.  
  17.      This is my first mod...  It works great, but it is an easy mod.  If you 
  18. want to make this mod an easy install instead of looking for the code just 
  19. search for add_ass functions in each of the files.
  20.  
  21.                                   DISCLAIMER!!
  22.         I am not resposable for anything in relationship to this mod and its
  23. effects on your life in any way.
  24.  
  25.  
  26.         Legend:         /*+*/ = ADD LINE
  27.                         /*-*/ = REMOVE LINE
  28.  
  29. ==============================================================================
  30.  
  31.         Pre-Step:  BACK UP YOUR SOURCE!
  32.  
  33. ==============================================================================
  34.  
  35. Step 1:
  36.  
  37. Load SR.C
  38.  
  39.         In the void send_file() find the folowing in send_file(...)
  40.  
  41.  
  42.   if ((*sent==0) && (ok==0))
  43.     if (percent==1.0) {
  44.       *sent=1;
  45. /*-*/ add_ass(10,get_stringx(1,65));
  46. /*+*/ add_ass(2,get_stringx(1,65));
  47.     } else {
  48.  
  49.     Save SR.C
  50.  
  51. ==============================================================================
  52.  
  53. Step 2:
  54.  
  55. Load XFER.C
  56.  
  57.         In the void upload() find
  58.  
  59.     if ((d.mask & mask_PD) && (ok)) {
  60.       nl();
  61.       prt(5,get_string(769));
  62.       if (!yn()) {
  63.         nl();
  64.         pl(get_string(770));
  65.         pl(get_string(771));
  66.         pl(get_string(772));
  67.         pl(get_string(773));
  68.         pl(get_string(774));
  69.         nl();
  70.         sprintf(s,get_stringx(1,41),u.filename);
  71. /*-*/   add_ass(5,s);
  72. /*+*/   add_ass(1,s);
  73.         ok=0;
  74.       } else
  75.  
  76.         save XFER.C
  77.  
  78. ==============================================================================
  79.  
  80. Step 3:
  81.  
  82. Load COM.C
  83.  
  84.         In void checkhangup() find
  85.  
  86.     if (!ok) {
  87.       hangup = hungup = 1;
  88. /*-*/ if (useron && !in_extern)
  89. /*+*/ if (useron && !in_extern) {  // add {
  90.         sysoplog(get_stringx(1,99));
  91. /*+*/   add_ass(3,get_stringx(1,99));
  92. /*+*/   }
  93.  
  94.  
  95.         Save COM.C
  96.  
  97. ==============================================================================
  98.  
  99. Step 4:
  100.  
  101. Load UTILITY.C
  102.  
  103.         In void add_ass() add this to the end
  104.  
  105.         while (thisuser.ass_pts > 10) {
  106.                 thisuser.sl -= 1;
  107.                 thisuser.dsl -= 1;
  108.                 thisuser.ass_pts -= 10;
  109.                 }
  110.  
  111.         Save UTILITY.C
  112.  
  113.  
  114. ==============================================================================
  115.  
  116. Step 5:
  117.  
  118. Load LILO.C
  119.  
  120.         In void logon(void) find
  121.  
  122.   if (incom && live_user) {
  123.     i=printfile("LOGON");
  124.     if ((!i) && (!(thisuser.sysstatus & sysstatus_pause_on_page)))
  125.       pausescr();
  126.   }
  127.         And add
  128.  
  129. /*+*/ if (thisuser.ass_pts >= 5)      // This sets the ass poit level to
  130. /*+*/   printfile("ASSPOINT");      // display this file to the user.
  131.  
  132.         Save LILO.C
  133.  
  134. ==============================================================================
  135.  
  136. Step 6:
  137.         Compile.
  138.  
  139.  
  140.      That's it...
  141.  
  142.                                  Squire MalColm
  143.  
  144. -----
  145.                                 1@16216  WWIVlink
  146.                                  1@1  MalColmNet
  147.                                  1@6216  WWIVnet
  148.  
  149.  
  150.